src = $(wildcard ./src/*c)
target = $(patsubst ./src/%.c, %, $(src))
inc_path = ./include
args = -Wall -g -pthread -std=c11
CC:=gcc
ALL:$(target)
%:./src/%.c
	$(CC) $< -o $@ $(args) -I $(inc_path)
clean:
	-rm -rf $(obj) $(target)
rebuild:clean $(target)
.PHONY:clean ALL rebuild
